<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Wen extends Model
{
    public static function Adds(Request $request)
    {
    	$data['name']=$request['name'];
	    $data['jian ']=$request['jian '];
		$data['zname']=$request['zname'];
		$data['znei']=$request['znei'];
		$data['zid']=$request['zid'];
		$data['dian']=$request['dian'];
		return DB::table('wen')->insert($request);
    }
    public static function Shows()
    {
    	return DB::table('wen')->paginate(1);
    }
    public static function Dels(Request $request)
    {
    	return DB::table('wen')->where('id',$id)->delete($request);
    }
}
